package com.easylinkin.linkappapi.grid.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 网格日报人员指定表
 *
 * @author kuyujie
 * @since 2024-05-16
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("grid_report_day_user")
public class GridReportDayUser implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @TableField(value = "id")
    private Long id;

    /**
     * 日报id
     */
    @TableField(value = "report_id")
    private Long reportId;

    /**
     * 网格id
     */
    @TableField(value = "grid_id")
    private Long gridId;

    /**
     * 角色名称
     */
    @TableField(value = "grid_role_name")
    private String gridRoleName;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 提交时间
     */
    @TableField(value = "submit_time")
    private LocalDateTime submitTime;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 租户id、项目id
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 创建人id
     */
    @TableField(value = "creator_id")
    private String creatorId;

    /**
     * 创建人
     */
    @TableField(value = "creator")
    private String creator;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改人id
     */
    @TableField(value = "modify_id")
    private String modifyId;

    /**
     * 修改人
     */
    @TableField(value = "modifier")
    private String modifier;

    /**
     * 修改时间
     */
    @TableField(value = "modify_time")
    private LocalDateTime modifyTime;

    /**
     * 删除标记 1未删除 0已删除
     */
    @TableField(value = "delete_state")
    @TableLogic
    private Integer deleteState;

}
